package sort;

public class CircularShift {

	public static void start(String test) {
		char[] temp = test.toCharArray();
		for (int i = 0; i < temp.length; i++) {
			char[] shift = new char[temp.length];
			for (int j = i; j < temp.length + i; j++) {
				shift[j - i] = temp[j % temp.length];
			}
			System.out.println(shift);
		}
	}

	public static void main(String[] args) {
		String test = "abc";
		start(test);
	}

}
